class Account < MudEntityBase
  has_three :characters
  properties :username, :password, :email

  def login

  
end


class Character < MudEntityBase
  has_many :items
end


class Items < MudEntityBase
  
end


class AccountCollection < MudCollectionBase
  
end



@bob = AccountCollection.find_by_name "bob"

@bob.characters.each { |x| puts x.name }



AccountCollection.reload



@account = Account.new( :username => "test", :password => "test", :email => "test@home.com")
# fills in account values
# saves to yaml file

@account = Account.load(:username => "test", :password => "test"  )


Account.last_login



AccountCollection.add @account
AccountCollection.remove
AccountCollection.find






